// api.js
import request from '../request';
// 列表
export const getSiteDetails = (params) => {
  return request({
    url: '/vilion/site/selectSiteDetails',
    method: 'GET',
    data: params
  });
};


// 站点朴拓
export const getSiteTopology = (params) => {
  return request({
    url: '/vilion/site/selectSiteTopology',
    method: 'GET',
    data: params
  });
};


// 设备列表


export const getDeviceList = (params) => {
  return request({
    url: '/vilion/site/deviceList',
    method: 'GET',
    data: params
  });
};


// 故障列表


export const getAlarmList = (params) => {
  return request({
    url: '/vilion/site/alarm',
    method: 'GET',
    data: params
  });
};



// 站点收益曲线
export const yieldCurve = (params) => {
  return request({
    url: '/vilion/site/profitCurve',
    method: 'GET',
    data: params
  });
};




// 站点收益统计

export const earningsStatistics = (params) => {
  return request({
    url: '/vilion/site/profitStatistics',
    method: 'GET',
    data: params
  });
};


// 功率分析

export const getPowerAnalysis = (params) => {
  return request({
    url: '/vilion/site/powerAnalysis',
    method: 'GET',
    data: params
  });
};
// 充放分析

export const getChargeAnalysis = (params) => {
  return request({
    url: '/vilion/site/chargeAnalysis',
    method: 'GET',
    data: params
  });
};

// 故障告警


export const getEvaluate = (params) => {
  return request({
    url: '/vilion/site/evaluate',
    method: 'GET',
    data: params
  });
};






